/**
 * @title
 * @description
 * @author 张玉华
 * @date 2020-11-16 17:18
 */
import {Entity, Column, PrimaryGeneratedColumn, OneToMany, JoinColumn} from "typeorm";
import {User} from "./User";

@Entity()
export class Line {

  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  name: string;

  @OneToMany(type => User, user => user.line)
  users: User[];
}
